{% extends "base.html" %}

{% block title %}首页 - Camera Pi{% endblock %}

{% block sidebar %}
{% endblock %}

{% block content %}
<div class="container-fluid">
    <div class="row">
        <div class="col-md-12 mb-4">
            <h2><i class="bi bi-house-heart"></i> 欢迎使用 Camera Pi</h2>
            <p class="lead">智能监控系统 - 让生活更安全</p>
        </div>
    </div>
    
    <div class="row">
        <div class="col-md-4">
            <div class="card h-100">
                <div class="card-body text-center">
                    <i class="bi bi-camera-video display-1 text-primary mb-3"></i>
                    <h5 class="card-title">视频监控</h5>
                    <p class="card-text">实时查看监控画面，支持多路视频流，让您随时掌握家中动态。</p>
                    <a href="/video/monitor" class="btn btn-primary">
                        <i class="bi bi-play-circle"></i> 进入监控
                    </a>
                </div>
            </div>
        </div>
        
        <div class="col-md-4">
            <div class="card h-100">
                <div class="card-body text-center">
                    <i class="bi bi-camera display-1 text-success mb-3"></i>
                    <h5 class="card-title">视频拍照</h5>
                    <p class="card-text">随时拍摄高质量照片，支持自动保存，记录精彩瞬间。</p>
                    <a href="/video/capture" class="btn btn-success">
                        <i class="bi bi-camera"></i> 开始拍照
                    </a>
                </div>
            </div>
        </div>
        
        <div class="col-md-4">
            <div class="card h-100">
                <div class="card-body text-center">
                    <i class="bi bi-person-badge display-1 text-info mb-3"></i>
                    <h5 class="card-title">人脸识别</h5>
                    <p class="card-text">智能人脸识别系统，自动识别访客身份，保障家庭安全。</p>
                    <a href="/video/face" class="btn btn-info">
                        <i class="bi bi-person-check"></i> 查看记录
                    </a>
                </div>
            </div>
        </div>
    </div>
    
    <div class="row mt-4">
        <div class="col-md-12">
            <div class="card">
                <div class="card-body">
                    <h5 class="card-title"><i class="bi bi-graph-up"></i> 系统状态</h5>
                    <div class="row">
                        <div class="col-md-3">
                            <div class="d-flex align-items-center">
                                <i class="bi bi-cpu text-primary fs-1 me-3"></i>
                                <div>
                                    <h6 class="mb-0">CPU使用率</h6>
                                    <div class="progress" style="width: 100px;">
                                        <div class="progress-bar" role="progressbar" style="width: 25%">25%</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="d-flex align-items-center">
                                <i class="bi bi-memory text-success fs-1 me-3"></i>
                                <div>
                                    <h6 class="mb-0">内存使用率</h6>
                                    <div class="progress" style="width: 100px;">
                                        <div class="progress-bar bg-success" role="progressbar" style="width: 40%">40%</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="d-flex align-items-center">
                                <i class="bi bi-hdd text-warning fs-1 me-3"></i>
                                <div>
                                    <h6 class="mb-0">存储空间</h6>
                                    <div class="progress" style="width: 100px;">
                                        <div class="progress-bar bg-warning" role="progressbar" style="width: 60%">60%</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="d-flex align-items-center">
                                <i class="bi bi-thermometer-half text-danger fs-1 me-3"></i>
                                <div>
                                    <h6 class="mb-0">系统温度</h6>
                                    <div class="progress" style="width: 100px;">
                                        <div class="progress-bar bg-danger" role="progressbar" style="width: 75%">45°C</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %} 